package com.atguigu.gmall.common.config.executor.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.concurrent.TimeUnit;

/**
 * @Author:lyd
 **/
@ConfigurationProperties("app.thread-pool")
@Data
public class ThreadPoolProperties {

    private Integer corePoolSize=5;
    private Integer maxPoolSize=10;
    private long keepAliveTime=5;
    private TimeUnit unit = TimeUnit.MINUTES;
    private Integer workQueueSize=4000;

}
